package com.xncoding.design.JianTingQi;

public class DefaultAlarmListener implements AlarmListener {
    @Override
    public void onConnect(ConnectedEvent event) {
        System.out.println(String.format("connect alarm[%s][%s] success!",
                event.getAlarmName(), event.getAlarmId()));
    }

    @Override
    public void onDisConnect(DisConnectedEvent event) {
        System.out.println(String.format("alarm[%s][%s] offline!",
                event.getAlarmName(), event.getAlarmId()));

    }
}